<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>更新页面</title>
    <style>
        #title{
            background: #c3c3c3;
            text-align: center;
        }
        span{
            color: red;
        }
    </style>
</head>
<body>
<form action="/updateEnterpriseTalent" method="post">
    <table border="1" width="100%">
        <tr id="title">
            <td colspan="2" style="text-align: center">
                <h2>更新人才信息</h2>
            </td>
        </tr>
        <tr>
            <td>人才姓名<span>(*)</span></td>
            <td>
                <input type="hidden" name="id" th:value="${session.talent.id}"></input>
                <input type="text" name="name" id="name" th:value="${session.talent.name}"></input>
            </td>
        </tr>
        <tr>
            <td>工作年限</td>
            <td>
                <input type="text" name="workingLife" id="workingLife" th:value="${session.talent.workingLife}"></input>
            </td>
        </tr>
        <tr>
            <td>所属部门<span>(*)</span></td>
            <td>
                <select name="department.id" id="departmentId" style="width: 170px;height: 20px">
                    <option value="0">全部</option>
                    <option th:each="department:${session.departments}"
                            th:value="${department.id}"
                            th:text="${department.name}"
                            th:selected="${session.talent.department.id}">
                    </option>
                </select>
            </td>
        </tr>
        <tr>
            <td>毕业学校</span></td>
            <td>
                <input type="text" name="graduateSchool" id="graduateSchool" th:value="${session.talent.graduateSchool}">
            </td>
        </tr>
        <tr>
            <td>个人简介</td>
            <td>
                <textarea rows="10" cols="50" name="personalProfile" id="personalProfile" th:text="${session.talent.personalProfile}">
                </textarea>
            </td>
        </tr>
        <tr>
            <td>工作经历</td>
            <td>
                <textarea rows="10" cols="50" name="workExperience" id="workExperience" th:text="${session.talent.workExperience}"></textarea>
            </td>
        </tr>
        <tr>
            <td colspan="2" style="text-align: center">
                <input type="submit" value="提交">
                <input type="button" value="返回">
            </td>
        </tr>
    </table>
</form>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/update.js"></script>
</body>
</html>